package cn.com.wdjedu.androidapp.wjeduandroid.support.lib.utils;

import android.support.v4.app.Fragment;

import cn.com.wdjedu.androidapp.wjeduandroid.ui.videoshow.fragment.ChapterFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.videoshow.fragment.CommentFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.videoshow.fragment.QuestAnsFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.videoshow.fragment.VideoShowDeatilsFragment;


/**
 * Created by shan_yao on 2016/6/17.
 */
public class VideoShowFragmentFactory {
    public static Fragment createForNoExpand(int position) {
        Fragment fragment = null;
        switch (position) {
            case 0:
                fragment = new ChapterFragment();
                break;
            case 1:
                fragment = new VideoShowDeatilsFragment();
                break;
            case 2:
                fragment = new CommentFragment();
                break;
            case 3:
                fragment = new QuestAnsFragment();
                break;
        }
        return fragment;
    }

}
